package com.dong.common.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.dong.module.user.pojo.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @description: 公共实体类
 * @author: 陈瑞东
 * @create: 2021-08-24 17:21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseDO implements Serializable {
    private static final long serialVersionUID = -1755637950532225702L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    protected String id;
    @TableField(fill = FieldFill.INSERT)
    protected String createUser;
    @TableField(fill = FieldFill.INSERT)
    protected Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    protected String updateUser;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    protected Date updateTime;
    @TableLogic
    protected Integer isDelete;
    @Version
    protected Integer version;
}
